package com.gupaoedu.pattern.factory.factorymethod;

import com.gupaoedu.pattern.factory.IFood;
import com.gupaoedu.pattern.factory.Milk;

/**
 * 2019/5/4
 * created by chenpp
 */
public class MilkFactory implements  FoodFactory{
    /**
     * 生产食物
     */
    public IFood product() {
        return new Milk();
    }
}
